package com.cb.domain.model.system;


import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

import org.hibernate.annotations.GenericGenerator;

/**
 * City Base Java Bean, base class for the model, mapped directly to database table
 * 
 * Avoid changing this file if not necessary, will be overwritten. 
 *
 * TODO: add class/table comments
 */
@Entity
@Table(name="city")
public class City implements Serializable {

    protected Long id;
	protected String naCd;
	protected String ctCd;
	protected String ctEn;
	protected String ctCn;
	protected String aptCn;
	protected String aptEn;
	protected String aptCode;
	protected String type;


    

	/**
	 * 	 * @return Long
     * @hibernate.id column="id" type="java.lang.Long" generator-class="native"
	 */
	
	@Id     
    @GeneratedValue(generator="Id_Generator")
    @GenericGenerator(name="Id_Generator", strategy="com.cb.common.util.IdGenerator")
	public Long getId() {
		return this.id;
	}
	
	/**
	 * Set the id
	 */	
	public void setId(Long aValue) {
		this.id = aValue;
	}	

	/**
	 * 	 * @return String
	 * @hibernate.property column="na_cd" type="java.lang.String" length="255" not-null="false" unique="false"
	 */
	
	@Column(name = "na_cd")	
	public String getNaCd() {
		return this.naCd;
	}
	
	/**
	 * Set the naCd
	 */	
	public void setNaCd(String aValue) {
		this.naCd = aValue;
	}	

	/**
	 * 	 * @return String
	 * @hibernate.property column="ct_cd" type="java.lang.String" length="255" not-null="false" unique="false"
	 */
	
	@Column(name = "ct_cd")
	public String getCtCd() {
		return this.ctCd;
	}
	
	/**
	 * Set the ctCd
	 */	
	public void setCtCd(String aValue) {
		this.ctCd = aValue;
	}	

	/**
	 * 	 * @return String
	 * @hibernate.property column="ct_en" type="java.lang.String" length="255" not-null="false" unique="false"
	 */
	
	@Column(name = "ct_en")	
	public String getCtEn() {
		return this.ctEn;
	}
	
	/**
	 * Set the ctEn
	 */	
	public void setCtEn(String aValue) {
		this.ctEn = aValue;
	}	

	/**
	 * 	 * @return String
	 * @hibernate.property column="ct_cn" type="java.lang.String" length="255" not-null="false" unique="false"
	 */
	
	@Column(name = "ct_cn")	
	public String getCtCn() {
		return this.ctCn;
	}
	
	/**
	 * Set the ctCn
	 */	
	public void setCtCn(String aValue) {
		this.ctCn = aValue;
	}	

	/**
	 * 	 * @return String
	 * @hibernate.property column="apt_cn" type="java.lang.String" length="255" not-null="false" unique="false"
	 */
	
	@Column(name = "apt_cn")	
	public String getAptCn() {
		return this.aptCn;
	}
	
	/**
	 * Set the aptCn
	 */	
	public void setAptCn(String aValue) {
		this.aptCn = aValue;
	}	

	/**
	 * 	 * @return String
	 * @hibernate.property column="apt_en" type="java.lang.String" length="255" not-null="false" unique="false"
	 */
	
	@Column(name = "apt_en")	
	public String getAptEn() {
		return this.aptEn;
	}
	
	/**
	 * Set the aptEn
	 */	
	public void setAptEn(String aValue) {
		this.aptEn = aValue;
	}	

	/**
	 * 	 * @return String
	 * @hibernate.property column="apt_code" type="java.lang.String" length="255" not-null="false" unique="false"
	 */
	
	@Column(name = "apt_code")	
	public String getAptCode() {
		return this.aptCode;
	}
	
	/**
	 * Set the aptCode
	 */	
	public void setAptCode(String aValue) {
		this.aptCode = aValue;
	}	

	/**
	 * 	 * @return String
	 * @hibernate.property column="type" type="java.lang.String" length="255" not-null="false" unique="false"
	 */
	
	@Column(name = "type")	
	public String getType() {
		return this.type;
	}
	
	/**
	 * Set the type
	 */	
	public void setType(String aValue) {
		this.type = aValue;
	}	

}